<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    [v-cloak] { display: none }
  </style>
</head>
<body>
  <div id="app" v-cloak>
    <div>提示文本：{{ html }}</div>
    <div v-html="html">初始内容</div>
    <div v-text="html">初始</div>
    <button v-on:click="handleClick">按钮1</button>
    <button @click="handleClick">按钮2</button>
    <span v-pre>{{ html }}</span>
    <span v-once>{{ html }}</span>
  </div>

  <script src="./libs/vue.js"></script>
  <script>
    setTimeout(function() {
      const vm = new Vue({
        el: '#app',
        data: {
          html: '<input />'
        },
        methods: {
          handleClick() {
            console.log('事件处理程序')
          }
        }
      })
    }, 5000)
  </script>
</body>
</html>